package com.pactera.miyuangroup.db.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * 启动停用状态
* @ClassName: UserState 
* @Description: 
* @author 陈浩
* @date 2018年4月17日 上午9:56:41
 */
public enum ShowState implements IEnum{
	
	ENABLE(0,"启用"),
	DELETE(1,"删除"),
	DISABLE(2,"停用");
	
	private int value;
	
	private String desc;
	
	ShowState(int value,String desc) {
		this.value = value;
		this.desc = desc;
	}

	@Override
	public Serializable getValue() {
		return this.value;
	}

	@JsonValue
	public String getDesc(){
		return this.desc;
	}

}
